package com.byxy.po;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.command.BaseModel;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;

import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

@Table(name = "Picture")
@Data
public class Picture extends BaseModel{
    @Id
    @Column(name = "id", type = MySqlTypeConstant.INT, length = 30, isKey = true, isAutoIncrement = true)
    private Integer id;// 图片id
    @Column(name = "picture_url", type = MySqlTypeConstant.VARCHAR, length = 80)
    private String picture_url;//图片路径
    @Column(name = "user_id", type = MySqlTypeConstant.INT, length = 15)
    private Integer userId;
    @Column(name = "blog_id", type = MySqlTypeConstant.INT, length = 15)
    private Integer blog_id;
    @Column(name = "picture_time", type = MySqlTypeConstant.DATETIME)
    private Date picture_time;
}
